#!/usr/bin/env python3
# _*_coding:utf-8_*_
# cockroach
# email:donnie.fan@foxmail.com

# a = [1]
#
# # for index,i in enumerate(a):
# #     print(index,i)
# #     a[index] += i+1
# #     print(index,a)
#
a = [1,2,3,4,5,6,7,8]
getattr_1 = (i*5 if i > 5 else i for i in a)
#
# print(a)


"""
列表生成器
"""
print(next(getattr_1))
print(next(getattr_1))
print(next(getattr_1))
print(next(getattr_1))
print(next(getattr_1))
print(next(getattr_1))



